﻿<ResourceDictionary x:Class="ResDictionary" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:OMANE.Modules.Dashboarding">

    <!--<Style TargetType="ComboBox">
        <Setter Property="Background" Value="White" />
    </Style>-->
    <x:Array Type="SolidColorBrush" x:Key="ColorData">
        <SolidColorBrush Color="#FF00009C" />
        <SolidColorBrush  Color="#FF0000D5" />
        <SolidColorBrush  Color="#FF0000FF" />
        <SolidColorBrush  Color="#FF009CFF" />
        <SolidColorBrush  Color="#FF00D5FF" />
        <SolidColorBrush  Color="#FF00FFFF" />
        <SolidColorBrush  Color="#FF9CFFFF" />
        <SolidColorBrush  Color="#FFD5FFFF" />
        <SolidColorBrush  Color="#FF009C00" />
        <SolidColorBrush  Color="#FF00D500" />
        <SolidColorBrush  Color="#FF00FF00" />
        <SolidColorBrush Color="#FF9CFF00" />
        <SolidColorBrush  Color="#FF00FF9C" />
        <SolidColorBrush  Color="#FF00D59C" />
        <SolidColorBrush  Color="#FF9CFF9C" />
        <SolidColorBrush  Color="#FF9CFFD5" />
        <SolidColorBrush  Color="#FFFFD500" />
        <SolidColorBrush  Color="#FFFFFF00" />
        <SolidColorBrush  Color="#FFD5FF00" />
        <SolidColorBrush  Color="#FFFFFF9C" />
        <SolidColorBrush  Color="#FFFFFFD5" />
        <SolidColorBrush  Color="#FF9C9C00" />
        <SolidColorBrush Color="#FFD5D500" />
        <SolidColorBrush Color="#FFD5D59C" />
        <SolidColorBrush  Color="#FFD50000" />
        <SolidColorBrush Color="#FFFF0000" />
        <SolidColorBrush  Color="#FF9C0000" />
        <SolidColorBrush  Color="#FFFF009C" />
        <SolidColorBrush Color="#FFFF00D5" />
        <SolidColorBrush Color="#FFFF00FF" />
        <SolidColorBrush Color="#FFFFD5FF" />
        <SolidColorBrush Color="#FFFF9CD5" />
        <SolidColorBrush Color="#FF9C00D5" />
        <SolidColorBrush  Color="#FF9C009C" />
        <SolidColorBrush  Color="#FF9C00FF" />
        <SolidColorBrush  Color="#FFD5009C" />
        <SolidColorBrush  Color="#FFD500D5" />
        <SolidColorBrush  Color="#FFD500FF" />
        <SolidColorBrush  Color="#FFD59CFF" />
        <SolidColorBrush  Color="#FFFF9CFF" />
        <SolidColorBrush  Color="#FF000000" />
        <SolidColorBrush Color="#FF9C9C9C" />
        <SolidColorBrush  Color="#FF9C9CD5" />
        <SolidColorBrush  Color="#FFD5D5D5" />
        <SolidColorBrush  Color="#FFD5D5FF" />
        <SolidColorBrush  Color="#FFD5FFD5" />
        <SolidColorBrush Color="#FF009CD5" />
        <SolidColorBrush  Color="#FFFFFFFF" />
        <SolidColorBrush Color="#FF9CD5D5" />
        <SolidColorBrush  Color="#FF009C9C" />
        <SolidColorBrush Color="#FF00D5D5" />
        <SolidColorBrush  Color="#FF00FFD5" />
        <SolidColorBrush Color="#FF9C9CFF" />
        <SolidColorBrush Color="#FF9CD500" />
        <SolidColorBrush  Color="#FF9CD59C" />
        <SolidColorBrush Color="#FF9CD5FF" />
        <SolidColorBrush  Color="#FFD59C00" />
        <SolidColorBrush  Color="#FFD59C9C" />
        <SolidColorBrush  Color="#FFD59CD5" />
        <SolidColorBrush  Color="#FFD5FF9C" />
        <SolidColorBrush  Color="#FFFF9C00" />
        <SolidColorBrush  Color="#FFFF9C9C" />
        <SolidColorBrush  Color="#FFFFD59C" />
        <!--<SolidColorBrush  Color="#FFFFD5D5" />-->
        <SolidColorBrush  Color="Transparent" />
    </x:Array>
    
    <Style x:Key="LayoutTextBlockStyle" TargetType="TextBlock">
        <Setter Property="Visibility">
            <Setter.Value>
                <MultiBinding Converter="{x:Static local:ViewDashboardZone.MultiValueVisibilityConverter}" >
                    <Binding Path="IsMouseOver" ElementName="root" />
                    <Binding Path="LayoutBlocked" ElementName="Zone" />
                    <Binding Path="ResizingBlocked" ElementName="Zone" />
                </MultiBinding>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ThumbSizeStyle" TargetType="Thumb">
        <Setter Property="Visibility">
            <Setter.Value>
                <MultiBinding Converter="{x:Static local:ViewDashboardZone.MultiValueVisibilityConverter}" >
                    <Binding Path="IsMouseOver" ElementName="root" />
                    <Binding Path="LayoutBlocked" ElementName="Zone" />
                    <Binding Path="ResizingBlocked" ElementName="Zone" />
                </MultiBinding>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Rectangle Fill="Black"  />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <DataTemplate DataType="{x:Type local:ViewModelDataImport}">
        <local:ViewDataImport />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelDataSourceList}">
        <local:ViewDataSourceList />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelDataStructure}">
        <local:ViewDataStructure />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelIndicateur}">
        <local:ViewIndicateur />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelIndicateurFormula}">
        <local:ViewIndicateurFormula />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelQueryBuilder}">
        <local:ViewQueryBuilder />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelDashboard}">
        <local:ViewDashboard />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelDashboardDataBinding}">
        <local:ViewDashboardDataBinding />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelRessources}">
        <local:ViewRessources  />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelFormat}">
        <local:ViewFormat   />
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:ViewModelSharedSettings}">
        <local:ViewSharedSettings   />
    </DataTemplate>
</ResourceDictionary>
